package Day04;

public class WhileDemo {
    public static void main(String[] args) {
        int times = 0;
        while (times < 5){
            System.out.println("行动是成功的阶梯");
            times++;
            System.out.println("继续执行");
        }
        /*
        times = 0
        times < 5
        输出
        times++  //自加一变为1
        times = 1
        times < 5
        输出
        times++ //自加一变为2
        times = 2
        times < 5
        输出
        times++ //自加一变为3
        times = 3
        times < 5
        输出
        times++ //自加一变为4
        times = 4
        times < 5
        输出
        times++ //自加一变为5
        times = 5
        times = 5
        停止输出


         */




        int num = 1;
        while (num <= 9){
            System.out.println(num+"*9="+num*9);
            num++;
        }
        System.out.println("继续执行");




    }
}
